package com.gem.day05;

/**员工实体类*/
public class Employee {
	private String empNo;
	private String name;
	private double salary;
	private Employee[] employees;

	public Employee() {
	}

	public Employee(String empNo, String name, double salary) {
		this.empNo = empNo;
		this.name = name;
		this.salary = salary;
	}

	public Employee(String empNo, String name, double salary, Employee[] employees) {
		this.empNo = empNo;
		this.name = name;
		this.salary = salary;
		this.employees = employees;
	}

	public String getEmpNo() {
		return empNo;
	}

	public void setEmpNo(String empNo) {
		this.empNo = empNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}

	public Employee[] getEmployees() {
		return employees;
	}

	public void setEmployees(Employee[] employees) {
		this.employees = employees;
	}

	@Override
	public String toString() {
		return "Employee [empNo=" + empNo + ", name=" + name + ", salary=" + salary + "]";
	}
}
